
package com.e885.util.numeric;

/**
 * <br>
 * Copyright: Copyright (c) 2001-2008<br>
 * Company: E885 Group
 * 
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 */

public class LongUtil
{
	/**
	 * get the obj of the Long
	 * 
	 * @param source
	 * @return
	 */
	public static Long getLong( String source )
	{
		if( source == null || source.trim().length() == 0 )
			return null;

		return new Long( source );
	}

	public static long getValue( Long obj )
	{
		if( obj == null )
			return 0l;

		return obj.longValue();
	}
}
